import { createRouter, createWebHistory } from 'vue-router'

import GuestLogin from "../views/GuestLogin.vue";
import ServerLogin from "@/views/ServerLogin.vue";
import GuestConsole from "../views/GuestConsole.vue";
import WaiterConsole from "@/views/WaiterConsole.vue";
import AdminConsole from "@/views/AdminConsole.vue";
import ManagerConsole from "@/views/ManagerConsole.vue";
import AdminConfig from "@/views/AdminConfig.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'ServerLogin',
      component: ServerLogin
    },
    {
      path: '/waiter',
      name: 'WaiterConsole',
      component: WaiterConsole
    },
    {
      path: '/admin/sub',
      name: 'AdminConsole',
      component: AdminConsole
    },
    {
      path: '/admin/center',
      name: 'AdminConfig',
      component: AdminConfig
    },
    {
      path: '/manager',
      name: 'ManagerConsole',
      component: ManagerConsole
    },
    {
      path: '/guest',
      name: 'GuestLogin',
      component: GuestLogin
    },
    {
      path: '/guest/console',
      name: 'GuestConsole',
      component: GuestConsole
    }
  ]
})


export default router
